package notepad;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.undo.CannotUndoException;
import javax.swing.undo.UndoManager;

public class Annuler extends AbstractAction {
	static final long serialVersionUID = 0 ;
	

	UndoManager undoManager ;
	
	Annuler() {
		undoManager = new UndoManager();
	}
	public void actionPerformed(ActionEvent ae) {
		try {
			undoManager.undo();
		} catch (CannotUndoException cue) {
			System.err.println(cue) ;
		}
	}
}
